package com.example.teachmvandroidchart.Adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder


import com.example.teachmvandroidchart.R
import com.example.teachmvandroidchart.data.DataServer
import com.example.teachmvandroidchart.util.Status
import java.util.ArrayList

/**DataServer
 * 文 件 名: AnimationAdapter
 * 创 建 人: her
 * 创建日期: 16/12/24 15:33
 * 邮   箱: AllenCoder@126.com
 * 修改时间：
 * 修改备注：
 */
open class AnimationAdapter(var list: ArrayList<Map<String, Any>>)  :
    BaseQuickAdapter<Status, BaseViewHolder>(
        R.layout.layout_animation,
        DataServer.getSampleData(5)
    ) {
     override fun convert(holder: BaseViewHolder, item: Status) {

         holder.setText(R.id.tweetName, list[holder.layoutPosition]["name"].toString())
         holder.setText(R.id.headr, list[holder.layoutPosition]["id"].toString())
         holder.setText(R.id.tweetText, list[holder.layoutPosition]["course"].toString())

    }


}